package com.jk.service.impl;

import com.jk.dao.ClientLoginDao;
import com.jk.po.ClentPO;
import com.jk.service.ClientLoginService;
import com.jk.vo.ClentVo;
import com.jk.vo.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/***
 * @ClassName: ClientLoginServiceImpl
 * @Description:TODO
 * @Auther: TaiBai
 * @Date: 2021/6/30 9:31
 * @version : V1.0
 */
@Service
public class ClientLoginServiceImpl implements ClientLoginService {
    @Autowired
    private ClientLoginDao ClientLoginDao;

    /*
    * @Author  TaiBai
    * @Description //TODO 查询数据库客户信息
    * @Date 15:04 2021/6/30
    * @method  queryClientByName
    * @Param [cusnumber]
    * @return com.jk.vo.ClentVo
    **/
    @Override
    public ClentPO queryClientByName(Integer cusnumber) {
        ClentPO clentPO = ClientLoginDao.queryClientByName(cusnumber);
        return clentPO;
    }
    /*
    * @Author  TaiBai
    * @Description //TODO 
    * @Date 10:02 2021/7/1
    * @method  saveClient
    * @Param [clentPO]
    * @return com.jk.vo.ResultInfo
    **/
    @Override
    public void saveClient(ClentPO clentPO) {
        ClientLoginDao.insert(clentPO);
    }
    /*
    * @Author  TaiBai
    * @Description //TODO 查询数据库手机号
    * @Date 20:42 2021/7/5
    * @method  queryClientByPhone
    * @Param [cusphone]
    * @return com.jk.po.ClentPO
    **/
    @Override
    public ClentPO queryClientByPhone(String cusphone) {
        ClentPO clentPO = ClientLoginDao.queryClientByPhone(cusphone);
        return clentPO;
    }


}
